import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/Index.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '',
      name: 'shouye',
      redirect: '/shouye',
    },
    {
      path: '/shouye',
      name: 'shouye',
      component: () => import('./views/index/ShouYe.vue')
    },
    {
      path: '/pintuan',
      name: 'pintuan',
      component: () => import('./views/index/PinTuan.vue')
    },
    {
      path: '/gouwuche',
      name: 'gouwuche',
      component: () => import('./views/index/GouWuChe.vue')
    },
    {
      path: '/wode',
      name: 'wode',
      component: () => import('./views/index/WoDe.vue')
    }
     
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () =>
    //     import(/* webpackChunkName: "about" */ './views/About.vue')
    // },
   
  ]
})
